* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Mochiy+Pop+One&display=swap');

body {
    font-family: 'Mochiy Pop One', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #ffd1dc 0%, #ffb6c1 100%);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    color: #ff1493;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    max-width: 800px;
    padding: 3rem;
    text-align: center;
    position: relative;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 3px solid #ff8da1;
    box-shadow: 0 8px 32px rgba(255, 105, 180, 0.2);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    color: #ff1493;
    text-shadow: 3px 3px 0px #ffd1dc;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

h1::after {
    content: '♡';
    position: absolute;
    right: -30px;
    top: 0;
    color: #ff69b4;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.option {
    padding: 1.2rem 2.5rem;
    font-size: 1.3rem;
    border: none;
    border-radius: 50px;
    background: linear-gradient(45deg, #ff69b4, #ff8da1);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 250px;
    position: relative;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
    font-family: 'Mochiy Pop One', sans-serif;
    letter-spacing: 1px;
    transform-origin: center;
}

.option::before {
    content: '✨';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.option::after {
    content: '✨';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.option:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.5);
    background: linear-gradient(45deg, #ff69b4, #ffa7b6);
    letter-spacing: 2px;
}

.tricky {
    transition: all 0.1s linear !important;
}

@keyframes shatter {
    0% { transform: scale(1); opacity: 1; }
    20% { transform: scale(1.2) rotate(5deg); }
    50% { transform: scale(0.8) rotate(-5deg); opacity: 0.8; }
    100% { transform: scale(0) rotate(15deg); opacity: 0; }
}

.shatter {
    animation: shatter 0.5s forwards;
}

.hide {
    opacity: 0;
    pointer-events: none;
}

#qr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 192, 203, 0.95);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#qr-modal.show {
    display: flex;
    animation: modalPop 0.5s ease;
}

@keyframes modalPop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

#qr-modal img {
    max-width: 300px;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(255, 20, 147, 0.3);
    background: white;
    padding: 20px;
    transform: rotate(-2deg);
    border: 5px solid #ff69b4;
}

/* 结果页面样式 */
.result-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.result-text {
    text-align: center;
    margin-bottom: 2rem;
}

.result-image {
    max-width: 300px;
    display: block;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(255, 20, 147, 0.3);
    background: white;
    padding: 20px;
    transform: rotate(-2deg);
    border: 5px solid #ff69b4;
}
